package com.googlecode.c4e.services.internal;

import java.util.Collections;
import java.util.List;

import com.googlecode.c4e.api.model.BuildResult;
import com.googlecode.c4e.api.model.Project;
import com.googlecode.c4e.api.model.ProjectGroup;
import com.googlecode.c4e.api.model.Server;
import com.googlecode.c4e.services.ContinuumConnector;

/**
 * @author gfernandes
 */
public class NoopContinuumConnector implements ContinuumConnector {

	public List<ProjectGroup> getAllProjectGroups(Server server)
			throws Exception {
		return Collections.emptyList();
	}

	public BuildResult getLatestBuildResult(Project project) throws Exception {
		throw new UnsupportedOperationException("Not supported");
	}

	public List<Project> getProjects(ProjectGroup projectGroup)
			throws Exception {
		return Collections.emptyList();
	}

	public void buildProject(Integer projectId) {
	}

	public Integer checkProjectState(Integer projectId) {
		throw new UnsupportedOperationException("Not supported");
	}

	public void connect(Server server) {
		throw new UnsupportedOperationException("Not supported");
	}

	public void ping() {
		throw new UnsupportedOperationException("Not supported");
	}

	public List<BuildResult> getBuildResults(Project project) throws Exception {
		return Collections.emptyList();
	}

}
